<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">

<h:head>
	<link type="text/css" rel="stylesheet" href="/jcs-prototipo/sistema/css/componentes.css" />
	<link type="text/css" rel="stylesheet" href="/jcs-prototipo/sistema/css/estilo.css" />
	<f:loadBundle var="label" basename="labels" />
	<title>#{label.sistema_sigla}</title>
</h:head>

<body>

	<script type="text/javascript">
	 	history.forward(0);
	</script>

	<f:view beforePhase="#{SecurityHandler.makeFormReadOnly}">

		<center>

			<h:panelGrid styleClass="template-header">
				<h:panelGrid id="TEMPLATE_PANEL_USUARIO" styleClass="template-panel-usuario-sistema">
					<h:outputLabel value="Enir Francisco Silva Ferraz (Usuário Root)" />
					<h:outputLabel id="TEMPLATE_LBL_SISTEMA" value="#{controleTemplateMB.aplicacaoGerenciada.sigla} - #{controleTemplateMB.aplicacaoGerenciada.nome}"
						rendered="#{controleTemplateMB.exibirMenu}" />
				</h:panelGrid>
				<ui:include src="/sistema/template/menu.xhtml" />
			</h:panelGrid>


			<h:panelGrid styleClass="template-corpo">
				<h:form id="FORMULARIO_PRINCIPAL">
					<p:growl id="MENSAGEM_MODEL" autoUpdate="true" redisplay="false" />
					<ui:insert name="corpo" />
				</h:form>
				<ui:insert name="outform" />
			</h:panelGrid>


			<h:panelGrid styleClass="template-footer">
				<h:panelGrid styleClass="template-panel-linguagem">
					<h:form>
						<h:commandLink value="Português" />
						<h:outputLabel value=" - " />
						<h:commandLink value="English" />
					</h:form>
				</h:panelGrid>
			</h:panelGrid>

		</center>

	</f:view>
</body>
</html>
